
_InitMain:

;EasyPIC6 Temperature Control.c,51 :: 		void InitMain() {
;EasyPIC6 Temperature Control.c,52 :: 		ANSEL  = 0;                         // Configure AN pins as digital
	CLRF       ANSEL+0
;EasyPIC6 Temperature Control.c,53 :: 		ANSELH = 0;
	CLRF       ANSELH+0
;EasyPIC6 Temperature Control.c,54 :: 		C1ON_bit = 0;                       // Disable comparators
	BCF        C1ON_bit+0, 7
;EasyPIC6 Temperature Control.c,55 :: 		C2ON_bit = 0;
	BCF        C2ON_bit+0, 7
;EasyPIC6 Temperature Control.c,56 :: 		Lcd_Init();
	CALL       _Lcd_Init+0
;EasyPIC6 Temperature Control.c,57 :: 		LCD_Cmd(_LCD_CURSOR_OFF);           // send command to LCD (cursor off)
	MOVLW      12
	MOVWF      FARG_Lcd_Cmd_out_char+0
	CALL       _Lcd_Cmd+0
;EasyPIC6 Temperature Control.c,58 :: 		LCD_Cmd(_LCD_CLEAR);                // send command  to LCD (clear LCD)
	MOVLW      1
	MOVWF      FARG_Lcd_Cmd_out_char+0
	CALL       _Lcd_Cmd+0
;EasyPIC6 Temperature Control.c,60 :: 		TRISE0_bit = 1;                                // set RE0 pin as input
	BSF        TRISE0_bit+0, 0
;EasyPIC6 Temperature Control.c,61 :: 		TRISE1_bit = 1;                                // set RE1 pin as input
	BSF        TRISE1_bit+0, 1
;EasyPIC6 Temperature Control.c,62 :: 		oldstate1 = 0;
	BCF        _oldstate1+0, BitPos(_oldstate1+0)
;EasyPIC6 Temperature Control.c,63 :: 		oldstate2 = 0;
	BCF        _oldstate2+0, BitPos(_oldstate2+0)
;EasyPIC6 Temperature Control.c,66 :: 		T1CON = 1;                                     // Timer1 settings
	MOVLW      1
	MOVWF      T1CON+0
;EasyPIC6 Temperature Control.c,67 :: 		TMR1IF_bit = 0;                                // Clear TMR1IF
	BCF        TMR1IF_bit+0, 0
;EasyPIC6 Temperature Control.c,68 :: 		TMR1H = 0x85;
	MOVLW      133
	MOVWF      TMR1H+0
;EasyPIC6 Temperature Control.c,69 :: 		TMR1L = 0xEE;                                  // TRM1 = 34286
	MOVLW      238
	MOVWF      TMR1L+0
;EasyPIC6 Temperature Control.c,70 :: 		TMR1IE_bit = 1;                                // Enable Timer1 interrupt
	BSF        TMR1IE_bit+0, 0
;EasyPIC6 Temperature Control.c,71 :: 		INTCON = 0xC0;                                 // Set GIE, PEIE
	MOVLW      192
	MOVWF      INTCON+0
;EasyPIC6 Temperature Control.c,72 :: 		}
	RETURN
; end of _InitMain

_Check_DeltaT:

;EasyPIC6 Temperature Control.c,74 :: 		void Check_DeltaT() {  // compare Set_temp value vs real read value
;EasyPIC6 Temperature Control.c,78 :: 		DeltaT = (Set_temp*2-temp2write);
	MOVF       _Set_temp+0, 0
	MOVWF      R0+0
	RLF        R0+0, 1
	BCF        R0+0, 0
	MOVF       Check_DeltaT_temp2write_L0+0, 0
	SUBWF      R0+0, 0
	MOVWF      R1+0
;EasyPIC6 Temperature Control.c,79 :: 		if (DeltaT > 0) {                          // Detect difference
	MOVLW      128
	XORLW      0
	MOVWF      R0+0
	MOVLW      128
	XORWF      R1+0, 0
	SUBWF      R0+0, 0
	BTFSC      STATUS+0, 0
	GOTO       L_Check_DeltaT0
;EasyPIC6 Temperature Control.c,80 :: 		Output_text = "ON ";
	MOVLW      ?lstr4_EasyPIC6_32Temperature_32Control+0
	MOVWF      _Output_text+0
;EasyPIC6 Temperature Control.c,81 :: 		}
	GOTO       L_Check_DeltaT1
L_Check_DeltaT0:
;EasyPIC6 Temperature Control.c,83 :: 		Output_text = "OFF";
	MOVLW      ?lstr5_EasyPIC6_32Temperature_32Control+0
	MOVWF      _Output_text+0
L_Check_DeltaT1:
;EasyPIC6 Temperature Control.c,84 :: 		LCD_Out(2,1,Output_text);                // Print string a on LCD, 2st row, 1st column
	MOVLW      2
	MOVWF      FARG_Lcd_Out_row+0
	MOVLW      1
	MOVWF      FARG_Lcd_Out_column+0
	MOVF       _Output_text+0, 0
	MOVWF      FARG_Lcd_Out_text+0
	CALL       _Lcd_Out+0
;EasyPIC6 Temperature Control.c,85 :: 		}
	RETURN
; end of _Check_DeltaT

_Display_Value:

;EasyPIC6 Temperature Control.c,87 :: 		void Display_Value(unsigned short s) {
;EasyPIC6 Temperature Control.c,89 :: 		ch_temp = s;
	MOVF       FARG_Display_Value_s+0, 0
	MOVWF      Display_Value_ch_temp_L0+0
;EasyPIC6 Temperature Control.c,92 :: 		if (ch_temp/100)
	MOVLW      100
	MOVWF      R4+0
	MOVF       FARG_Display_Value_s+0, 0
	MOVWF      R0+0
	CALL       _Div_8x8_U+0
	MOVF       R0+0, 0
	BTFSC      STATUS+0, 2
	GOTO       L_Display_Value2
;EasyPIC6 Temperature Control.c,93 :: 		St_text[0] = ch_temp/100  + 48;
	MOVF       _St_text+0, 0
	MOVWF      FLOC__Display_Value+0
	MOVLW      100
	MOVWF      R4+0
	MOVF       Display_Value_ch_temp_L0+0, 0
	MOVWF      R0+0
	CALL       _Div_8x8_U+0
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Value+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
	GOTO       L_Display_Value3
L_Display_Value2:
;EasyPIC6 Temperature Control.c,95 :: 		St_text[0] = '0';
	MOVF       _St_text+0, 0
	MOVWF      FSR
	MOVLW      48
	MOVWF      INDF+0
L_Display_Value3:
;EasyPIC6 Temperature Control.c,96 :: 		St_text[1] = (ch_temp/10)%10 + 48;     // Extract tens digit
	INCF       _St_text+0, 0
	MOVWF      FLOC__Display_Value+0
	MOVLW      10
	MOVWF      R4+0
	MOVF       Display_Value_ch_temp_L0+0, 0
	MOVWF      R0+0
	CALL       _Div_8x8_U+0
	MOVLW      10
	MOVWF      R4+0
	CALL       _Div_8x8_U+0
	MOVF       R8+0, 0
	MOVWF      R0+0
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Value+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
;EasyPIC6 Temperature Control.c,97 :: 		St_text[2] =  ch_temp%10     + 48;     // Extract ones digit
	MOVLW      2
	ADDWF      _St_text+0, 0
	MOVWF      FLOC__Display_Value+0
	MOVLW      10
	MOVWF      R4+0
	MOVF       Display_Value_ch_temp_L0+0, 0
	MOVWF      R0+0
	CALL       _Div_8x8_U+0
	MOVF       R8+0, 0
	MOVWF      R0+0
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Value+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
;EasyPIC6 Temperature Control.c,98 :: 		LCD_Out(1,8,St_text);                  // Print string a on LCD, 1st row, 8rd column
	MOVLW      1
	MOVWF      FARG_Lcd_Out_row+0
	MOVLW      8
	MOVWF      FARG_Lcd_Out_column+0
	MOVF       _St_text+0, 0
	MOVWF      FARG_Lcd_Out_text+0
	CALL       _Lcd_Out+0
;EasyPIC6 Temperature Control.c,99 :: 		}
	RETURN
; end of _Display_Value

_Check_Button:

;EasyPIC6 Temperature Control.c,101 :: 		void Check_Button() {
;EasyPIC6 Temperature Control.c,102 :: 		if (RA0_bit) {                        // Button on RA0 pressed
	BTFSS      RA0_bit+0, 0
	GOTO       L_Check_Button4
;EasyPIC6 Temperature Control.c,103 :: 		Delay_ms(40);
	MOVLW      104
	MOVWF      R12+0
	MOVLW      228
	MOVWF      R13+0
L_Check_Button5:
	DECFSZ     R13+0, 1
	GOTO       L_Check_Button5
	DECFSZ     R12+0, 1
	GOTO       L_Check_Button5
	NOP
;EasyPIC6 Temperature Control.c,104 :: 		if (Set_temp < 85) {
	MOVLW      85
	SUBWF      _Set_temp+0, 0
	BTFSC      STATUS+0, 0
	GOTO       L_Check_Button6
;EasyPIC6 Temperature Control.c,105 :: 		Set_temp++;                               // actions of the button RE0 -> Increase Set_temp
	INCF       _Set_temp+0, 1
;EasyPIC6 Temperature Control.c,106 :: 		}
	GOTO       L_Check_Button7
L_Check_Button6:
;EasyPIC6 Temperature Control.c,107 :: 		else {}
L_Check_Button7:
;EasyPIC6 Temperature Control.c,110 :: 		Display_Value(Set_temp);           // Update display of Set_temp
	MOVF       _Set_temp+0, 0
	MOVWF      FARG_Display_Value_s+0
	CALL       _Display_Value+0
;EasyPIC6 Temperature Control.c,111 :: 		}
L_Check_Button4:
;EasyPIC6 Temperature Control.c,113 :: 		if (RA1_bit) {                      // Button on RA1 pressed
	BTFSS      RA1_bit+0, 1
	GOTO       L_Check_Button8
;EasyPIC6 Temperature Control.c,114 :: 		Delay_ms(40);
	MOVLW      104
	MOVWF      R12+0
	MOVLW      228
	MOVWF      R13+0
L_Check_Button9:
	DECFSZ     R13+0, 1
	GOTO       L_Check_Button9
	DECFSZ     R12+0, 1
	GOTO       L_Check_Button9
	NOP
;EasyPIC6 Temperature Control.c,115 :: 		if (Set_temp > 0) {
	MOVF       _Set_temp+0, 0
	SUBLW      0
	BTFSC      STATUS+0, 0
	GOTO       L_Check_Button10
;EasyPIC6 Temperature Control.c,116 :: 		Set_temp--;                               // actions of the button RE1 -> Decrease Set_temp
	DECF       _Set_temp+0, 1
;EasyPIC6 Temperature Control.c,117 :: 		}
	GOTO       L_Check_Button11
L_Check_Button10:
;EasyPIC6 Temperature Control.c,118 :: 		else {}
L_Check_Button11:
;EasyPIC6 Temperature Control.c,120 :: 		Display_Value(Set_temp);           // Update display of Set_temp
	MOVF       _Set_temp+0, 0
	MOVWF      FARG_Display_Value_s+0
	CALL       _Display_Value+0
;EasyPIC6 Temperature Control.c,121 :: 		}
L_Check_Button8:
;EasyPIC6 Temperature Control.c,122 :: 		}
	RETURN
; end of _Check_Button

_Display_Temperature:

;EasyPIC6 Temperature Control.c,124 :: 		void Display_Temperature(unsigned int temp2write) {
;EasyPIC6 Temperature Control.c,129 :: 		if (temp2write & 0x8000) {                      // Check if temperature is negative
	BTFSS      FARG_Display_Temperature_temp2write+1, 7
	GOTO       L_Display_Temperature12
;EasyPIC6 Temperature Control.c,130 :: 		text2[0] = '-';
	MOVF       _text2+0, 0
	MOVWF      FSR
	MOVLW      45
	MOVWF      INDF+0
;EasyPIC6 Temperature Control.c,131 :: 		temp2write = ~temp2write + 1;
	COMF       FARG_Display_Temperature_temp2write+0, 1
	COMF       FARG_Display_Temperature_temp2write+1, 1
	INCF       FARG_Display_Temperature_temp2write+0, 1
	BTFSC      STATUS+0, 2
	INCF       FARG_Display_Temperature_temp2write+1, 1
;EasyPIC6 Temperature Control.c,132 :: 		}
L_Display_Temperature12:
;EasyPIC6 Temperature Control.c,135 :: 		temp_whole = temp2write >> RES_SHIFT ;
	MOVF       FARG_Display_Temperature_temp2write+0, 0
	MOVWF      R0+0
	MOVF       FARG_Display_Temperature_temp2write+1, 0
	MOVWF      R0+1
	RRF        R0+1, 1
	RRF        R0+0, 1
	BCF        R0+1, 7
	MOVF       R0+0, 0
	MOVWF      Display_Temperature_temp_whole_L0+0
;EasyPIC6 Temperature Control.c,138 :: 		if (temp_whole/100)
	MOVLW      100
	MOVWF      R4+0
	CALL       _Div_8x8_U+0
	MOVF       R0+0, 0
	BTFSC      STATUS+0, 2
	GOTO       L_Display_Temperature13
;EasyPIC6 Temperature Control.c,139 :: 		text2[0] = temp_whole/100  + 48;
	MOVF       _text2+0, 0
	MOVWF      FLOC__Display_Temperature+0
	MOVLW      100
	MOVWF      R4+0
	MOVF       Display_Temperature_temp_whole_L0+0, 0
	MOVWF      R0+0
	CALL       _Div_8x8_U+0
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Temperature+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
	GOTO       L_Display_Temperature14
L_Display_Temperature13:
;EasyPIC6 Temperature Control.c,141 :: 		text2[0] = '0';
	MOVF       _text2+0, 0
	MOVWF      FSR
	MOVLW      48
	MOVWF      INDF+0
L_Display_Temperature14:
;EasyPIC6 Temperature Control.c,142 :: 		text2[1] = (temp_whole/10)%10 + 48;             // Extract tens digit
	INCF       _text2+0, 0
	MOVWF      FLOC__Display_Temperature+0
	MOVLW      10
	MOVWF      R4+0
	MOVF       Display_Temperature_temp_whole_L0+0, 0
	MOVWF      R0+0
	CALL       _Div_8x8_U+0
	MOVLW      10
	MOVWF      R4+0
	CALL       _Div_8x8_U+0
	MOVF       R8+0, 0
	MOVWF      R0+0
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Temperature+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
;EasyPIC6 Temperature Control.c,143 :: 		text2[2] =  temp_whole%10     + 48;             // Extract ones digit
	MOVLW      2
	ADDWF      _text2+0, 0
	MOVWF      FLOC__Display_Temperature+0
	MOVLW      10
	MOVWF      R4+0
	MOVF       Display_Temperature_temp_whole_L0+0, 0
	MOVWF      R0+0
	CALL       _Div_8x8_U+0
	MOVF       R8+0, 0
	MOVWF      R0+0
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Temperature+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
;EasyPIC6 Temperature Control.c,146 :: 		temp_fraction  = temp2write << (4-RES_SHIFT);
	MOVF       FARG_Display_Temperature_temp2write+0, 0
	MOVWF      R0+0
	MOVF       FARG_Display_Temperature_temp2write+1, 0
	MOVWF      R0+1
	RLF        R0+0, 1
	RLF        R0+1, 1
	BCF        R0+0, 0
	RLF        R0+0, 1
	RLF        R0+1, 1
	BCF        R0+0, 0
	RLF        R0+0, 1
	RLF        R0+1, 1
	BCF        R0+0, 0
	MOVF       R0+0, 0
	MOVWF      Display_Temperature_temp_fraction_L0+0
	MOVF       R0+1, 0
	MOVWF      Display_Temperature_temp_fraction_L0+1
;EasyPIC6 Temperature Control.c,147 :: 		temp_fraction &= 0x000F;
	MOVLW      15
	ANDWF      R0+0, 1
	MOVLW      0
	ANDWF      R0+1, 1
	MOVF       R0+0, 0
	MOVWF      Display_Temperature_temp_fraction_L0+0
	MOVF       R0+1, 0
	MOVWF      Display_Temperature_temp_fraction_L0+1
;EasyPIC6 Temperature Control.c,148 :: 		temp_fraction *= 625;
	MOVLW      113
	MOVWF      R4+0
	MOVLW      2
	MOVWF      R4+1
	CALL       _Mul_16x16_U+0
	MOVF       R0+0, 0
	MOVWF      Display_Temperature_temp_fraction_L0+0
	MOVF       R0+1, 0
	MOVWF      Display_Temperature_temp_fraction_L0+1
;EasyPIC6 Temperature Control.c,151 :: 		text2[4] =  temp_fraction/1000    + 48;         // Extract thousands digit
	MOVLW      4
	ADDWF      _text2+0, 0
	MOVWF      FLOC__Display_Temperature+0
	MOVLW      232
	MOVWF      R4+0
	MOVLW      3
	MOVWF      R4+1
	CALL       _Div_16x16_U+0
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Temperature+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
;EasyPIC6 Temperature Control.c,152 :: 		text2[5] = (temp_fraction/100)%10 + 48;         // Extract hundreds digit
	MOVLW      5
	ADDWF      _text2+0, 0
	MOVWF      FLOC__Display_Temperature+0
	MOVLW      100
	MOVWF      R4+0
	MOVLW      0
	MOVWF      R4+1
	MOVF       Display_Temperature_temp_fraction_L0+0, 0
	MOVWF      R0+0
	MOVF       Display_Temperature_temp_fraction_L0+1, 0
	MOVWF      R0+1
	CALL       _Div_16x16_U+0
	MOVLW      10
	MOVWF      R4+0
	MOVLW      0
	MOVWF      R4+1
	CALL       _Div_16x16_U+0
	MOVF       R8+0, 0
	MOVWF      R0+0
	MOVF       R8+1, 0
	MOVWF      R0+1
	MOVLW      48
	ADDWF      R0+0, 1
	MOVF       FLOC__Display_Temperature+0, 0
	MOVWF      FSR
	MOVF       R0+0, 0
	MOVWF      INDF+0
;EasyPIC6 Temperature Control.c,155 :: 		Lcd_Out(2, 8, text2);
	MOVLW      2
	MOVWF      FARG_Lcd_Out_row+0
	MOVLW      8
	MOVWF      FARG_Lcd_Out_column+0
	MOVF       _text2+0, 0
	MOVWF      FARG_Lcd_Out_text+0
	CALL       _Lcd_Out+0
;EasyPIC6 Temperature Control.c,156 :: 		}
	RETURN
; end of _Display_Temperature

_main:

;EasyPIC6 Temperature Control.c,158 :: 		void main() {
;EasyPIC6 Temperature Control.c,159 :: 		InitMain();
	CALL       _InitMain+0
;EasyPIC6 Temperature Control.c,161 :: 		text1 = "Set:";                               // Assign text to string
	MOVLW      ?lstr6_EasyPIC6_32Temperature_32Control+0
	MOVWF      _text1+0
;EasyPIC6 Temperature Control.c,162 :: 		LCD_Out(1,1,text1);                           // Print string a on LCD, 1st row, 1st column
	MOVLW      1
	MOVWF      FARG_Lcd_Out_row+0
	MOVLW      1
	MOVWF      FARG_Lcd_Out_column+0
	MOVF       _text1+0, 0
	MOVWF      FARG_Lcd_Out_text+0
	CALL       _Lcd_Out+0
;EasyPIC6 Temperature Control.c,165 :: 		Lcd_Chr(2,15,223);                            // character code for degree 223 (or 178 if not working)
	MOVLW      2
	MOVWF      FARG_Lcd_Chr_row+0
	MOVLW      15
	MOVWF      FARG_Lcd_Chr_column+0
	MOVLW      223
	MOVWF      FARG_Lcd_Chr_out_char+0
	CALL       _Lcd_Chr+0
;EasyPIC6 Temperature Control.c,166 :: 		Lcd_Chr_Cp('C');                              // adds "C" character
	MOVLW      67
	MOVWF      FARG_Lcd_Chr_CP_out_char+0
	CALL       _Lcd_Chr_CP+0
;EasyPIC6 Temperature Control.c,167 :: 		Lcd_Chr(1,15,223);                            // character code for degree 223 (or 178 if not working)
	MOVLW      1
	MOVWF      FARG_Lcd_Chr_row+0
	MOVLW      15
	MOVWF      FARG_Lcd_Chr_column+0
	MOVLW      223
	MOVWF      FARG_Lcd_Chr_out_char+0
	CALL       _Lcd_Chr+0
;EasyPIC6 Temperature Control.c,168 :: 		Lcd_Chr_Cp('C');                              // adds "C" character
	MOVLW      67
	MOVWF      FARG_Lcd_Chr_CP_out_char+0
	CALL       _Lcd_Chr_CP+0
;EasyPIC6 Temperature Control.c,170 :: 		do {                                          //--- Main loop
L_main15:
;EasyPIC6 Temperature Control.c,172 :: 		Display_Value(Set_temp);                    // Display of Set_temp value
	MOVF       _Set_temp+0, 0
	MOVWF      FARG_Display_Value_s+0
	CALL       _Display_Value+0
;EasyPIC6 Temperature Control.c,173 :: 		Check_Button();
	CALL       _Check_Button+0
;EasyPIC6 Temperature Control.c,174 :: 		Check_DeltaT();
	CALL       _Check_DeltaT+0
;EasyPIC6 Temperature Control.c,176 :: 		Ow_Reset(&PORTE, 2);                        // Onewire reset signal
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Reset_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Reset_pin+0
	CALL       _Ow_Reset+0
;EasyPIC6 Temperature Control.c,177 :: 		Ow_Write(&PORTE, 2, 0xCC);                  // Issue command SKIP_ROM
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Write_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Write_pin+0
	MOVLW      204
	MOVWF      FARG_Ow_Write_data_+0
	CALL       _Ow_Write+0
;EasyPIC6 Temperature Control.c,178 :: 		Ow_Write(&PORTE, 2, 0x44);                  // Issue command CONVERT_T
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Write_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Write_pin+0
	MOVLW      68
	MOVWF      FARG_Ow_Write_data_+0
	CALL       _Ow_Write+0
;EasyPIC6 Temperature Control.c,179 :: 		Delay_us(120);
	MOVLW      79
	MOVWF      R13+0
L_main18:
	DECFSZ     R13+0, 1
	GOTO       L_main18
	NOP
	NOP
;EasyPIC6 Temperature Control.c,181 :: 		Ow_Reset(&PORTE, 2);
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Reset_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Reset_pin+0
	CALL       _Ow_Reset+0
;EasyPIC6 Temperature Control.c,182 :: 		Ow_Write(&PORTE, 2, 0xCC);                  // Issue command SKIP_ROM
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Write_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Write_pin+0
	MOVLW      204
	MOVWF      FARG_Ow_Write_data_+0
	CALL       _Ow_Write+0
;EasyPIC6 Temperature Control.c,183 :: 		Ow_Write(&PORTE, 2, 0xBE);                  // Issue command READ_SCRATCHPAD
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Write_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Write_pin+0
	MOVLW      190
	MOVWF      FARG_Ow_Write_data_+0
	CALL       _Ow_Write+0
;EasyPIC6 Temperature Control.c,185 :: 		temp =  Ow_Read(&PORTE, 2);
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Read_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Read_pin+0
	CALL       _Ow_Read+0
	MOVF       R0+0, 0
	MOVWF      _temp+0
	CLRF       _temp+1
;EasyPIC6 Temperature Control.c,186 :: 		temp = (Ow_Read(&PORTE, 2) << 8) + temp;
	MOVLW      PORTE+0
	MOVWF      FARG_Ow_Read_port+0
	MOVLW      2
	MOVWF      FARG_Ow_Read_pin+0
	CALL       _Ow_Read+0
	MOVF       R0+0, 0
	MOVWF      R2+1
	CLRF       R2+0
	MOVF       _temp+0, 0
	ADDWF      R2+0, 0
	MOVWF      R0+0
	MOVF       R2+1, 0
	BTFSC      STATUS+0, 0
	ADDLW      1
	ADDWF      _temp+1, 0
	MOVWF      R0+1
	MOVF       R0+0, 0
	MOVWF      _temp+0
	MOVF       R0+1, 0
	MOVWF      _temp+1
;EasyPIC6 Temperature Control.c,189 :: 		Display_Temperature(temp);
	MOVF       R0+0, 0
	MOVWF      FARG_Display_Temperature_temp2write+0
	MOVF       R0+1, 0
	MOVWF      FARG_Display_Temperature_temp2write+1
	CALL       _Display_Temperature+0
;EasyPIC6 Temperature Control.c,190 :: 		Delay_ms(100);
	MOVLW      2
	MOVWF      R11+0
	MOVLW      4
	MOVWF      R12+0
	MOVLW      186
	MOVWF      R13+0
L_main19:
	DECFSZ     R13+0, 1
	GOTO       L_main19
	DECFSZ     R12+0, 1
	GOTO       L_main19
	DECFSZ     R11+0, 1
	GOTO       L_main19
	NOP
;EasyPIC6 Temperature Control.c,191 :: 		} while (1);
	GOTO       L_main15
;EasyPIC6 Temperature Control.c,192 :: 		}
	GOTO       $+0
; end of _main
